package com.example.boot.service.impl;

import com.example.boot.bean.City;
import com.example.boot.mapper.CityMapper;
import com.example.boot.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shkstart
 * @creat 2021-04-07-下午1:41
 */
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityMapper cityMapper;
    public City getCity(Long id){
        return cityMapper.getById(id);
    }
}
